package cn.iocoder.yudao.module.resource.controller.admin.gamematches.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "用户 APP - 对局记录新增/修改 Request VO")
@Data
public class GameMatchesSaveReqVO {

    @Schema(description = "对局id", requiredMode = Schema.RequiredMode.REQUIRED, example = "20459")
    private String matchId;

    @Schema(description = "标题")
    private String title;

    @Schema(description = "用户id", requiredMode = Schema.RequiredMode.REQUIRED, example = "9392")
    @NotNull(message = "用户id不能为空")
    private Long userId;

    @Schema(description = "角色id", requiredMode = Schema.RequiredMode.REQUIRED, example = "10048")
    @NotNull(message = "角色id不能为空")
    private Integer roleId;

    @Schema(description = "完成时间")
    private LocalDateTime finishedAt;

    @Schema(description = "扩展")
    private String extension;

}